package net.qiqb.core.domain.definition;

import cn.hutool.core.lang.Assert;
import net.qiqb.core.build.EntityDefineBuilder;

public class EntityDefine extends DomainDefine {
    /**
     * id 属性名称
     */
    private final String idPropertyName;

    public EntityDefine(EntityDefineBuilder builder) {
        super(builder.getName(), builder.getDomainClassName());
        this.idPropertyName = builder.getIdPropertyName();
        Assert.notBlank(idPropertyName);
    }


}
